<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: qi
  Date: 2022/5/7
  Time: 15:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>list</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
<h1>欢迎${user.username}</h1>
<a href="userservlet?method=logout">退出</a>
<a href="add.jsp">添加</a>
<span style="color: crimson">${msg}</span>
<table border="1">
    <tr>
    <th>编号</th>
    <th>姓名</th>
        <th>生日</th>
    <th>性别</th>
    <th>职业</th>
    <th>住所</th>
    <th>电话</th>
    <th colspan="2">操作</th>
    </tr>
        <c:forEach items="${pageinfo.list}" var="profile" varStatus="i">
    <tr>
        <td>${profile.id}</td>
        <td>${profile.name}</td>
        <td>${profile.birthday}</td>
        <td>${profile.gender}</td>
        <td>${profile.career}</td>
        <td>${profile.address}</td>
        <td>${profile.mobile}</td>
        <td>
            <a href="${pageContext.request.contextPath}/profileservlet?method=detail&id=${profile.id}">明细</a>
        </td>
        <td>
            <a href="${pageContext.request.contextPath}/profileservlet?method=findById&id=${profile.id}">修改</a>
        </td>
    </tr>
        </c:forEach>
</table>


<span style="color: crimson">${msg}</span>
<script type="text/javascript">

</script>
</body>
</html>
